﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MiniSched.Orm {

    public class OrganizationEvent : Entity {

        public Event Event { get; set; }
        public int EventId { get; set; }

        public Organization Organization { get; set; }
        public int OrganizationId { get; set; }

        public RecurrenceType RecurrenceType { get; set; }
        public int RecurrenceTypeId { get; set; }

        public TimeSpan? RecurrenceTime { get; set; }

        public ICollection<EventJob> EventJobs { get; set; }

        public ICollection<ScheduledEvent> ScheduledEvents { get; set; }
    }
}
